﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 模板方法模式
{
    /// <summary>
    /// 1.抽象方法/虚方法/普通方法
    /// 2.模板方法设计模式
    /// 3.钩子方法
    /// </summary>
    class Program
    {
        static void Main(string[] args)
        {

            Client client = new ClientRegular();
            client.Query(8888, "123456", "大黄瓜 ");

            Client client1 = new ClientCurrent();
            client1.Query(8881, "123456", "大黄瓜2 ");
            Console.Read();
        }
    }
}
